import Layout from '@/pages/public/layout' // 公共部分

const video = [{
  path: '/course/agent',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/course/agent/list.vue'),
    meta: {
      title: '代理记录',
      permission: 'course.agent.list'
    }
  }, {
    path: 'school',
    component: () => import('@/pages/course/agent/school.vue'),
    meta: {
      title: '代理课程',
      permission: 'course.agent.school'
    }
  }, {
    path: ':id/info',
    component: () => import('@/pages/course/agent/info.vue'),
    meta: {
      title: '代理记录-详情',
      permission: 'course.agent.list.info'
    }
  }, {
    path: 'school/:id/user',
    component: () => import('@/pages/course/agent/school_user.vue'),
    meta: {
      title: '代理课程-学员',
      permission: 'course.agent.school.user'
    }
  }, {
    path: ':id/course',
    component: () => import('@/pages/course/agent/course.vue'),
    meta: {
      title: '机构-课程列表',
      permission: 'course.agent.course'
    }
  }]
}]

export default video
